package com.redsoil.house.model.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by weidingqiang on 2019/1/7.
 */

public class RoomFileVO {

    private List<FilesBeanX> files;

    public List<FilesBeanX> getFiles() {
        return files;
    }

    public void setFiles(List<FilesBeanX> files) {
        this.files = files;
    }

    public static class FilesBeanX {
        /**
         * typeName : 保险相关
         * files : [{"fileName":"反面.jpg","filePath":"product/974ceff70b764224a5c7a37f4280f0c8.jpg"}]
         * fileCount : 1
         * typeCode : BXXG
         */

        private String typeName;
        private int fileCount;
        private String typeCode;
        private List<FilesBean> files;

        public String getTypeName() {
            return typeName;
        }

        public void setTypeName(String typeName) {
            this.typeName = typeName;
        }

        public int getFileCount() {
            return fileCount;
        }

        public void setFileCount(int fileCount) {
            this.fileCount = fileCount;
        }

        public String getTypeCode() {
            return typeCode;
        }

        public void setTypeCode(String typeCode) {
            this.typeCode = typeCode;
        }

        public List<FilesBean> getFiles() {
            return files;
        }

        public void setFiles(List<FilesBean> files) {
            this.files = files;
        }

        public static class FilesBean implements Parcelable {
            /**
             * fileName : 反面.jpg
             * filePath : product/974ceff70b764224a5c7a37f4280f0c8.jpg
             */

            private String fileName;
            private String filePath;

            public String getFileName() {
                return fileName;
            }

            public void setFileName(String fileName) {
                this.fileName = fileName;
            }

            public String getFilePath() {
                return filePath;
            }

            public void setFilePath(String filePath) {
                this.filePath = filePath;
            }


            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeString(this.fileName);
                dest.writeString(this.filePath);
            }

            public FilesBean() {
            }

            protected FilesBean(Parcel in) {
                this.fileName = in.readString();
                this.filePath = in.readString();
            }

            public static final Creator<FilesBean> CREATOR = new Creator<FilesBean>() {
                @Override
                public FilesBean createFromParcel(Parcel source) {
                    return new FilesBean(source);
                }

                @Override
                public FilesBean[] newArray(int size) {
                    return new FilesBean[size];
                }
            };
        }
    }
}
